package com.platform.service.impl;

import com.platform.dao.FeedbackDao;
import com.platform.entity.FeedbackEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.platform.service.FeedbackService;

/**
 * Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-07-11 17:09:50
 */
@Service("feedbackService")
public class FeedbackServiceImpl implements FeedbackService {
    @Autowired
    private FeedbackDao apiFeedbackDao;

    @Override
    public FeedbackEntity queryObject(Long id) {
        return apiFeedbackDao.queryObject(id);
    }

    @Override
    public List<FeedbackEntity> queryList(Map<String, Object> map) {
        return apiFeedbackDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return apiFeedbackDao.queryTotal(map);
    }

    @Override
    public int save(FeedbackEntity apiFeedback) {
        return apiFeedbackDao.save(apiFeedback);
    }

    @Override
    public int update(FeedbackEntity apiFeedback) {
        return apiFeedbackDao.update(apiFeedback);
    }

    @Override
    public int delete(Long id) {
        return apiFeedbackDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[]ids) {
        return apiFeedbackDao.deleteBatch(ids);
    }
}
